@echo off 
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\ControlStorageDevice\Policies" /v WriteProtect  /f 
reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR" /v Start  /f 
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR" /v Start /t reg_dword /d 3 /f 
copy %Windir%\usbstor.inf %Windir%\inf\usbstor.inf  /y >nul 
copy %Windir%\usbstor.pnf  %Windir%\inf\usbstor.pnf /y >nul 
@echo on